<template>
  <div class="container">
    <a-table class="table" :rowKey="row => row.id" :dataSource="list">
      <a-table-column title="用户ID" width="60px">
        <template slot-scope="row">
          <div>{{row.user_id}}</div>
        </template>
      </a-table-column>
      <a-table-column title="用户名" width="60px">
        <template slot-scope="row">
          <div><img :src="row.user.headimg" alt="用户头像">{{row.user.name}}</div>
        </template>
      </a-table-column>
  
      <a-table-column title="?等奖" width="60px">
        <template slot-scope="row">
          <div>{{row.ranking}}</div>
        </template>
      </a-table-column>
      
    </a-table>


  </div>
</template>

<script>
  // import AttrEditor from "./components/AttrEditor"


  export default {
    components: {

    },
    data() {
      return {
        info: {},
        list: []
      }
    },
    computed: {
    },
    props: {
      participant: ''
    },
    created() {
      this.list = this.participant;
    },
    mounted() {},
    watch: {},
    methods: {
      cancel() {
        this.$router.back(-1)
      }
    }
  }
</script>

<style lang="scss" scoped>
  .form-container {
    padding-bottom: 120px;
  }

  .container {
    .btn {
      margin-right: 30px;
    }
  }

  .tips-c {
    margin-bottom: 20px;
    font-weight: 500;
  }
  img {
        width: 26px;
        height: 26px;
        margin-right: 6px;
        border-radius: 50%;
        overflow: hidden;
      }
</style>
